#include "widget.h"
#include "ui_widget.h"
#include <QPushButton>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_radioButton_clicked()
{
    QString s("今天你想玩什么游戏：");
    if(ui->radioButton->isChecked())
        s = s+ui->radioButton->text()+" ";

    ui->label->setText(s);
}
void Widget::on_radioButton_3_clicked()
{
    QString s("今天你想玩什么游戏：");
    if(ui->radioButton_3->isChecked())
        s = s+ui->radioButton_3->text()+" ";

    ui->label->setText(s);
}
void Widget::on_radioButton_2_clicked()
{
    QString s("今天你想玩什么游戏：");
    if(ui->radioButton_2->isChecked())
        s = s+ui->radioButton_2->text()+" ";

    ui->label->setText(s);
}



